package com.luyang.platform.contact.rest.user.convert;

import com.luyang.platform.contact.application.user.command.CreateUserCommand;
import com.luyang.platform.contact.rest.user.request.CreateUserReq;
import org.mapstruct.Mapper;

/**
 * 用户请求转换
 *
 * @author lu_yang
 */
@Mapper(componentModel = "spring")
public interface UserRequestConverter {

    /**
     * 创建用户请求BODY 转 CMD
     *
     * @param c 请求BODY
     * @return com.luyang.platform.contact.application.user.command.CreateUserCommand
     * @author lu_yang
     */
    public CreateUserCommand createConverter(CreateUserReq c);
}
